<script setup lang="ts">
import ServiceChargeItem from '@/pages/serviceCharge/components/ServiceChargeItem.vue'

function handleClickLeft() {
  uni.navigateBack()
}
function toAdd() {
  uni.navigateTo({
    url: '/pages/serviceCharge/add',
  })
}
</script>

<template>
  <view class="h-full flex flex-col overflow-hidden">
    <wd-navbar title="服务费方案" left-text="返回" left-arrow @click-left="handleClickLeft" />
    <scroll-view
      scroll-y
      class="box-border flex-1 overflow-hidden p-[10px]"
      :show-scrollbar="false"
    >
      <service-charge-item />
      <wd-loadmore state="finished" finished-text="无更多数据" />
    </scroll-view>
    <view class="flex border-t-1 border-border border-t-solid bg-white p-4">
      <wd-button type="primary" :round="false" class="flex-1" @click="toAdd">
        添加服务费方案
      </wd-button>
    </view>
  </view>
</template>

<style scoped lang="scss"></style>
